package TransactionImplementation

import (
	"PaySalary/AbstractTransactions"
	"PaySalary/Model"
)

type ChangeAddressTransaction struct {
	AbstractTransactions.ChangeEmployeeTransaction
	itsAddress string
}

func (at *ChangeAddressTransaction)NewChangeAddressTransaction(empid int, address string)  {
	at.ChangeEmployeeTransaction.NewChangeEmployeeTransaction(empid)
	at.itsAddress = address
}

func (at *ChangeAddressTransaction)Change(e Model.Employee)  {
	e.SetAddress(at.itsAddress)
}